package com.xunfang.cloud.controller;

import com.xunfang.cloud.common.result.ResultData;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayAlibabaController {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping(value = "/pay/nacos/{id}")
    public ResultData getPayInfo(@PathVariable("id") Integer id) {
        ResultData resultData = new ResultData();
        resultData.setData("nacos registry, serverPort: " + serverPort + "\t id" + id);
        return resultData;
    }
}